<template>
  <div>
    <span @click="$router.back()" style="font-size: 30px; color: greenyellow;">&lt;</span>
    <ul>
        <li>这是你要看的房子详情{{number}}</li>
    </ul>
  </div>
</template>

<script>
export default {
    data(){
        return{
            number:''
        }
    },
    created(){  
        this.number=this.$route.params.id
    }
}
</script>

<style>
    *{
        margin: 0;
        padding: 0;
    }
    ul{
       margin-top: 50%;
        text-align: center;

    }
</style>